import Type from "../view/Home/List/Type"
import Detail from "../view/Detail"
import Home from "../view/Home"
import CarList from "../view/Home/CarList"
import Homes from "../view/Home/Homes"
import List from "../view/Home/List"
import My from "../view/Home/My"
import Login from "../view/Login"
import WilldelGoods from "../view/Home/My/child/WilldelGoods"
import Willreap from "../view/Home/My/child/Willreap"
import Willpay from "../view/Home/My/child/Willpay"
import Coloner from "../view/Home/My/child/Coloner"
import Address from "../view/Home/My/child/Address"
import Communty from "../view/Home/My/child/Community"
import Integral from "../view/Home/My/child/Integral"

const route = [
    {
        path: '/home',
        component: Home,
        children: [
            {
                path: "/home/homes",
                component: Homes   //首页
            },
            {
                path: "/home/list",  //分类
                component: List
            },
            {
                path: "/home/carlist",  //购物车
                component: CarList
            },
            {
                path: "/home/my",    //我的
                component: My
            },
            {
                to: "/home/homes",
                from: "/home"
            }
        ]

    },
    {
        path: "/detail",  //详情
        component: Detail
    },
    {
        path: "/type",
        component: Type //分类列表
    },
    {
        path: "/Willpay",
        component: Willpay //待付款
    },
    {
        path: "/WilldelGoods",
        component: WilldelGoods //待发货
    },
    {
        path: "/Willreap",
        component: Willreap //待收货
    },
    {
        path: "/Communty",
        component: Communty  //社区信息
    },
    {
        path: "/Coloner",
        component: Coloner //申请团长
    },
    {
        path: "/Address",
        component: Address//我的地址
    },
    {
        path: "/Communty",
        component: Communty  //社区信息
    },
    {
        path: "/Integral",
        component: Integral  //积分商城
    },
    {
        path: "/login",     //登录
        component: Login
    },
    {
        to: "/home",
        from: "/"
    }
]

export default route